#include <iostream>
using namespace std;

int main()
{

    //for (;;)   // 一个空的for创建无限循环
    //{
    //}

 /*   for (char userSelection = 'm'; userSelection != 'x'; )
    {
        cout << "按x退出" << endl;
        cin >> userSelection;
    }*/

    int someNums[] = { 11, 22, -33, 44, 55 };

    for (const int aNum : someNums)
        cout << aNum << endl;

    for (auto anElement : { 5, 222, 110, -45, 2017 })
        cout << anElement << endl;

    char charArray[] = { 'h', 'e', 'l', 'l', 'o' };
    for (auto aChar : charArray)
        cout << aChar <<  endl;

    string sayHello{ "Hello World" };
    for (auto anElement : sayHello)
        cout << anElement <<  endl;

    return 0;
}